-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: preserve cached config while mutating config #5735
fix: preserve cached config while mutating config #5735
Conversation
This pull request adds or modifies JavaScript ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Tests are failing, though. Also, do you think it's worth putting this behind a feature flag?
fbb9613
to
9347e75
Compare
These area is so super well tested, that if all tests pass and I don't have to touch a snapshot I'm pretty confident with the changes that it does not break anything. The currently solution works fine by passing down the cachedConfig to |
🎉 Thanks for submitting a pull request! 🎉
Summary
Needed for: https://linear.app/netlify/issue/CT-738/cli-should-use-framework-detection-and-install-runtime-for-build-and
When a build plugin did config mutations, it did not preserve the previous configuration (cachedConfig). As it read it up freshly from the
netlify.toml
For us to review and ship your PR efficiently, please perform the following steps:
we can discuss the changes and get feedback from everyone that should be involved. If you`re fixing a typo or
something that`s on fire 🔥 (e.g. incident related), you can skip this step.
your code follows our style guide and passes our tests.
A picture of a cute animal (not mandatory, but encouraged)